import {request} from '@/utils/request'
/**
 * 用户相关接口api
 * @param 参数1:请求地址 ,参数2:请求方法,参数3:请求的数据 ,参数4:token,参数5:请求头
 */
// 发送验证码
export const codeReq=(data)=>request('/code','get',data)
// 登陆
export const loginReq=(data)=>request('/login','post',data)
// 注册
export const registerReq=(data)=>request('/register','post',data)
// 会员详情
export const user_detailReq=(data)=>request('/user_detail','get',data)
// 会员基本资料
export const base_infoReq=()=>request('/base_info','get')
// 会员理想对象
export const ideal_infoReq=()=>request('/ideal_info','get')
// 会员选项
export const base_info_optionReq=()=>request('/base_info_option','get')
// 更新头像
export const update_headerReq=(data)=>request('/update_header','post',data)
// 保存基本资料
export const base_info_saveReq=(data)=>request('/base_info_save','post',data)
// 保存理想对象
export const ideal_info_saveReq=(data)=>request('/ideal_info_save','post',data)
// 会员列表
export const user_listReq=(data)=>request('/user_list','post',data)
// 关注会员
export const follow_addReq=(data)=>request('/follow_add','get',data)
// 取消关注
export const follow_cancelReq=(data)=>request('/follow_cancel','get',data)
// 关注列表
export const follow_listReq=(data)=>request('/follow_list','post',data)
// 会员相册
export const albumReq=()=>request('/album','get')
// 添加相片
export const album_addReq=(data)=>request('/album_add','post',data)
// 删除相片
export const album_delReq=(data)=>request('/album_del','get',data)
// 礼物类型列表
export const gift_typeReq=()=>request('/gift_type','get')
// 送礼物
export const gift_sendReq=(data)=>request('/gift_send','post',data)
// 签到配置

// 签到
export const signReq=()=>request('/sign','get')


export default {
	codeReq,
	loginReq,
	registerReq,
	user_detailReq,
	base_infoReq,
	ideal_infoReq,
	base_info_optionReq,
	update_headerReq,
	base_info_saveReq,
	ideal_info_saveReq,
	user_listReq,
	follow_addReq,
	follow_cancelReq,
	follow_listReq,
	albumReq,
	album_addReq,
	album_delReq,
	gift_typeReq,
	gift_sendReq,
	signReq,
	
}